<?php
/**
 * Created by PhpStorm.
 * User: BeoBungBu
 * Date: 5/24/14
 * Time: 1:49 PM
 */
?>
<div class="main-content">
    <h1 style="font-size:30px;color:red;text-align:center;">REGISTER</h1>
    <?php if(isset($msg['msg'])){ ?>
        <h1 style="margin-top:10px;font-size:20px;color:red;text-align:center;"><?php echo $msg['msg']; ?></h1>
    <?php } ?>
    <form action="" method="post">
        <table class="register">


            <tr>
                <td style="">Email :</td>
            </tr>
            <tr>
                <td> <pre>    </pre></td>
            </tr>
            <tr>
                <td><input type="email" <?php echo $msg['email']; ?>  name="email" required="true" /> </td>
            </tr>
            <tr>
                <td>Re-type email :</td>
            </tr>
            <tr>
                <td> <pre>    </pre></td>
            </tr>
            <tr>
                <td><input type="email" <?php echo $msg['re-email']; ?> name="re-email" required="true" </td>
            </tr>
            <tr>
                <td style="">Password :</td>
            </tr>
            <tr>
                <td> <pre>    </pre></td>
            </tr>
            <tr>
                <td><input type="password" <?php echo $msg['password']; ?> name="password" required="true" /> </td>
            </tr>
            <tr>
                <td>Re-type password :</td>
            </tr>
            <tr>
                <td> <pre>    </pre></td>
            </tr>
            <tr>
                <td><input type="password" <?php echo $msg['re-password']; ?> name="re-password" required="true" </td>
            </tr>
            <tr>
                <td> <pre>    </pre></td>
            </tr>
            <tr>
                <td><input style="width:16px;height:16px;" type="checkbox" name="cb" required="true"/>I agree to <a href="<?php echo $this->Html->url(array('controller'=>'terms','action'=>'index')); ?>">terms and conditions</a> </td>
            </tr>
            <tr>
                <td> <pre>    </pre></td>
            </tr>
            <tr>
                <td>
                   <div style="float:left;"> <img src="<?php echo $this->Html->url(array('controller'=>'captcha','action'=>'index')) ?>" alt="captcha" /></div>
                   <div style="float:left;"><input  required="true" type="text" <?php echo $msg['captcha']; ?> name="captcha" class="normal"></div>
                </td>
            </tr>
            <tr>
                <td> <pre>    </pre></td>
            </tr>
            <tr>
                <td><input style="width: 60px;height:30px;border-radius:5px;border-color:red;" type="submit" value="register" name="register"/>
                <input style="width: 60px;height:30px;border-radius:5px;border-color:red;" value="reset" name="reset" type="reset"/></td>
            </tr>
        </table>
    </form>
</div>